

<div class="am-cf admin-main">
<div class=" admin-content">
	




	
	


<div class="admin-biaogelist">
	
    <div class="listbiaoti am-cf">
      <ul class="am-icon-flag on"> 首页</ul>
      
      <dl class="am-icon-home" style="float: right;">当前位置： 首页 > <a href="#">首页</a></dl>
      
      <dl>
       <!-- <button type="button" class="am-btn am-btn-danger am-round am-btn-xs am-icon-plus" > 补充线订单</button>-->
      </dl>
      <!--这里打开的是新页面-->
      
      
      
      
      
      
      
      
      
      
      
      
      
    </div>






    <div class="fbneirong">


        <form class="am-form">
            <div style="margin-left: 200px;">
                <div  style="; font-size: 25px;color: #000000;float: left ">本月总单量：<span class="allorder"><?php echo $all?></span></div>
                <div    style="; font-size: 25px;color: #000000; float: left;  padding-left: 100px;">本月平均每日单量：<span class="perorder"><?php echo $avg?></span></div>
            </div>
        </form>
    </div>
    
    
    
    <script>

        var on_request=false;
        var type=1;
        var page=1;

        $("#chongzhi").click(function () {
            pay()
        });

        function pay() {
            if (on_request) {
                return;
            }
            on_request = true;

            var url = "<?php echo site_url(); ?>/Business/payaction";
            var postdata = {
                'page': page
            };
            var account=$("input[name='account']").val();
            var money = $("input[name='money']").val();
            var username= $("input[name='username']").val();


            postdata['account'] = account;
            postdata['money'] =money;
            postdata['username'] =username;

            $.post(url, postdata, function (data) {
                on_request = false;


            });
        }


        function setlisthtnml(data) {
            var html = '';
            if(data.list.length>0){
                $.each(data.list, function (key, value) {
                    html += ' <tr>' +
                        '<td><input type="checkbox" /></td>\n' +
                        ' <td>'+  value.id+'</td>\n' +
                        ' <td>'+value.addtime+'</td>\n' +
                        '  <td>'+value.money+'</td>\n' +
                        '                    <td class="am-hide-sm-only">'+value.money_maker+'</td>\n' +
                        '                    <td class="am-hide-sm-only">'+value.statu+'</td>\n' +

                        '  <td>'+value.remark+'</td>\n' +

                        '  <td>   <div class="am-btn-toolbar">\n' +
                        '                            无\n' +
                        '                        </div>\n' +
                        '                    </td>\n' +
                        '                </tr>';
                });
                $(".impowdith").html(html);
                $('#Pagination').show();
            }else{
                html += '<li><div style="width:100%;text-align:center;">&nbsp暂无数据</div></li>';
                $(".impowdith").html(html);
                $('#Pagination').hide();
            }

        }




        getpaylist();
        function getpaylist() {
            var url = "<?php echo site_url(); ?>/Business/getpaylist";
            var postdata = {
                'page': page
            };
            $.post(url, postdata, function (data) {
                 on_request = false;
                 setlisthtnml(data);
                 setPagination("Pagination", data.count, page, data.epage, function (clickPage) {
                     page = parseInt(clickPage) + 1;
                     getpaylist();
                 });
            },'json');

        }


    </script>
	



 
 
 
 
 <div class="foods">
  <ul>
    版权所有@2015. 
  </ul>
  <dl>
    <a href="" title="返回头部" class="am-icon-btn am-icon-arrow-up"></a>
  </dl>
</div>




</div>

</div>




</div>


<!--<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>-->
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="<?php echo base_url() . 'public/business/'; ?>assets/js/polyfill/rem.min.js"></script>
<script src="<?php echo base_url() . 'public/business/'; ?>assets/js/polyfill/respond.min.js"></script>
<script src="<?php echo base_url() . 'public/business/'; ?>assets/js/amazeui.legacy.js"></script>


<!--[if (gte IE 9)|!(IE)]><!--> 
<script src="<?php echo base_url() . 'public/business/'; ?>assets/js/amazeui.min.js"></script>
<!--<![endif]-->



</body>
</html>